// 1 .全局注册一个混入,影响注册之后所有创建的每个Vue实例
// 2. 去 main.js 注册全局混入
import Vue from "vue"
import {mapState, mapMutations} from "vuex"

Vue.mixin({
    data () {
        return {
            
        }
    },
    computed: {
        ...mapState(['userinfo'])
    },
    methods: {
        ...mapMutations(['changeUserinfo']),
        gotowhere(name){
            this.$router.push({name:name})
        }
    },
    created () {
        
    },
    mounted () {
        
    }
})